#ifndef DRAWING_H_INCLUDED
#define DRAWING_H_INCLUDED
#include <cmath>
#include <utility>

#include <cmath>
#include <iostream>
#include <stdlib.h>
#include <SFML/Graphics.hpp>
#include "Consts.h"
class Drawing
{
    public:
        Drawing(sf::RenderWindow * window);
        void outlineDraw( sf::Text &text, sf::Color oc, float ot, int smooth = 15 );
        void textOnCase(short pos_x, short pos_y ,  sf::Text &text, sf::Color oc = sf::Color::Black, float ot = 2, int smooth = 25);

        void textureAt(short pos_x, short pos_y ,  short id);

        void shaderRange(short pos_x, short pos_y , short range, sf::Color color1 , sf::Color color2 = sf::Color(0,0,0,255) );
        void overLineUnit(short pos_x, short pos_y ,  sf::Color color  ) ;
        sf::RenderWindow* getWindow() {return mainwindow;} ;

        sf::Font & getFont(int id){ return fonts[id] ;};

        double time_drawing ;
    private:


        std::vector<sf::Texture> textures ;
        std::vector<sf::Font> fonts ;
        sf::RenderWindow* mainwindow ;
        //std::map< std::pair< short x, short y> , sf::Drawable >
};
#endif // DRAWING_H_INCLUDED
